package com.xjscrm.server.mapper;

import com.xjscrm.common.entity.WwGroupMember;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface WwGroupMemberMapper {
    int deleteById(@Param("id") Long id);

    int deleteByWxid(@Param("merId") Long merId, @Param("wxid") String wxid);

    int insert(WwGroupMember record);

    int insertSelective(WwGroupMember record);

    WwGroupMember selectById(Long id);

    /**
     * 查询群成员
     * @author jitwxs
     * @date 2024/3/25 12:35
     * @param wxid
     * @return com.xjscrm.common.entity.WwGroupMember
     */
    WwGroupMember selectByGroupWxidAndWxid(@Param("merId") Long merId,  @Param("groupWxid") String groupWxid, @Param("wxid") String wxid);

    int updateByIdSelective(WwGroupMember record);

    int updateById(WwGroupMember record);
}